package com.mz.ozy.mvp.view;

import android.app.Activity;
import android.content.Context;

import com.mz.ozy.base.BasePresenter;
import com.mz.ozy.base.BaseView;
import com.mz.ozy.bean.AssetsBean;
import com.mz.ozy.bean.MyOrderInfoBean;
import com.mz.ozy.bean.NetBean;

import org.json.JSONObject;

/**
 * Created by Administrator on 2018/12/12.
 */

public interface MyOrderInfoContract {

    interface View extends BaseView {

        void onInitSuccess(MyOrderInfoBean myOrderInfoBean);

        void onInitError(String msg);

        void onConfirmSuccess(NetBean netBean);

        void onConfirmError(String msg);

        void onCancelOrderSuccess(NetBean netBean);

        void onCancelOrderError(String msg);

        void onDelOrderSuccess(NetBean netBean);

        void onDelOrderError(String msg);

        void geAssetsInfoSuccess(AssetsBean bean);

        void onPaySuccess(JSONObject orderBean);

        void onPayError(String s);
    }

    interface Presenter extends BasePresenter<View> {

        void initData(Activity activity, String orderID, int beanType);

        void geAssetsInfo(Context context);

        void onPay(Context context, String orderID, String msg, int i, int type, int beanType);

        void confirm(Activity activity, String tseq, int beanType);

        void cancelOrder(Activity activity, String tseq, int beanType);

        void delOrder(Activity activity, String tseq);
    }
}
